﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HumanResorcesProj.DAL._HR_DSTableAdapters;
using HumanResorcesProj.DAL;
using HumanResorcesProj.GUI.Extensions;
using System.Web.UI;

namespace HumanResorcesProj.BLL
{
    public class ChildrenBLL
    {
        private ChildrenTableTableAdapter info = null;
        public ChildrenTableTableAdapter adapter
        {
            get
            {
                if (info == null) info = new ChildrenTableTableAdapter();
                return info;
            }
        }

     



        public int InserNewChild(string EmpId,string childId,string childName,string ChildBirthDate,string childGender)
        {
            return adapter.InsertNewChild(EmpId, childId, childName, ChildBirthDate, childGender);
           
        }

        public DAL._HR_DS.ChildrenTableDataTable GetByName(string EmpID)
        {
           return adapter.GetByName(EmpID);
        }
    }
}
